﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="MobilePage.aspx.vb" Inherits="Haunted.MobilePage" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
      <h2 class="style3"> Snap and Share
    </h2> 
    <p class="style3">
    <asp:ListView ID="ListView1" runat="server" DataSourceID="SqlDataSource1" 
        DataKeyNames="ID">
        <AlternatingItemTemplate>
            <tr style="">
                <td>
                    <asp:Label ID="IDLabel" runat="server" Text='<%# Eval("ID") %>' />
                </td>
                <td>
                    <asp:Label ID="NameOfInvestigatorLabel" runat="server" 
                        Text='<%# Eval("NameOfInvestigator") %>' />
                </td>
                <td>
                    <asp:Label ID="PictureLabel" runat="server" Text='<%# Eval("Picture") %>' />
                </td>
                <td>
                    <asp:Label ID="DescriptionLabel" runat="server" 
                        Text='<%# Eval("Description") %>' />
                </td>
            </tr>
        </AlternatingItemTemplate>
        <EditItemTemplate>
            <tr style="">
                <td>
                    <asp:Button ID="UpdateButton" runat="server" CommandName="Update" 
                        Text="Update" />
                    <asp:Button ID="CancelButton" runat="server" CommandName="Cancel" 
                        Text="Cancel" />
                </td>
                <td>
                    <asp:Label ID="IDLabel1" runat="server" Text='<%# Eval("ID") %>' />
                </td>
                <td>
                    <asp:TextBox ID="NameOfInvestigatorTextBox" runat="server" 
                        Text='<%# Bind("NameOfInvestigator") %>' />
                </td>
                <td>
                    <asp:TextBox ID="PictureTextBox" runat="server" Text='<%# Bind("Picture") %>' />
                </td>
                <td>
                    <asp:TextBox ID="DescriptionTextBox" runat="server" 
                        Text='<%# Bind("Description") %>' />
                </td>
            </tr>
        </EditItemTemplate>
        <EmptyDataTemplate>
            <table runat="server" 
                style="">
                <tr>
                    <td>
                        No data was returned.</td>
                </tr>
            </table>
        </EmptyDataTemplate>
        <InsertItemTemplate>
            <tr style="">
                <td>
                    <asp:Button ID="InsertButton" runat="server" CommandName="Insert" 
                        Text="Insert" />
                    <asp:Button ID="CancelButton" runat="server" CommandName="Cancel" 
                        Text="Clear" />
                </td>
                <td>
                    &nbsp;</td>
                <td>
                    <asp:TextBox ID="NameOfInvestigatorTextBox" runat="server" 
                        Text='<%# Bind("NameOfInvestigator") %>' />
                </td>
                <td>
                    <asp:TextBox ID="PictureTextBox" runat="server" Text='<%# Bind("Picture") %>' />
                </td>
                <td>
                    <asp:TextBox ID="DescriptionTextBox" runat="server" 
                        Text='<%# Bind("Description") %>' />
                </td>
            </tr>
        </InsertItemTemplate>
        <ItemTemplate>
            <tr style="">
                <td>
                    <asp:Label ID="IDLabel" runat="server" Text='<%# Eval("ID") %>' />
                </td>
                <td>
                    <asp:Label ID="NameOfInvestigatorLabel" runat="server" 
                        Text='<%# Eval("NameOfInvestigator") %>' />
                </td>
                <td>
                    <asp:Label ID="PictureLabel" runat="server" Text='<%# Eval("Picture") %>' />
                </td>
                <td>
                    <asp:Label ID="DescriptionLabel" runat="server" 
                        Text='<%# Eval("Description") %>' />
                </td>
            </tr>
        </ItemTemplate>
        <LayoutTemplate>
            <table runat="server">
                <tr runat="server">
                    <td runat="server">
                        <table ID="itemPlaceholderContainer" runat="server" border="0" 
                            style="">
                            <tr runat="server" style="">
                                <th runat="server">
                                    ID</th>
                                <th runat="server">
                                    NameOfInvestigator</th>
                                <th runat="server">
                                    Picture</th>
                                <th runat="server">
                                    Description</th>
                            </tr>
                            <tr ID="itemPlaceholder" runat="server">
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr runat="server">
                    <td runat="server" 
                        style="">
                    </td>
                </tr>
            </table>
        </LayoutTemplate>
        <SelectedItemTemplate>
            <tr style="">
                <td>
                    <asp:Label ID="IDLabel" runat="server" Text='<%# Eval("ID") %>' />
                </td>
                <td>
                    <asp:Label ID="NameOfInvestigatorLabel" runat="server" 
                        Text='<%# Eval("NameOfInvestigator") %>' />
                </td>
                <td>
                    <asp:Label ID="PictureLabel" runat="server" Text='<%# Eval("Picture") %>' />
                </td>
                <td>
                    <asp:Label ID="DescriptionLabel" runat="server" 
                        Text='<%# Eval("Description") %>' />
                </td>
            </tr>
        </SelectedItemTemplate>
    </asp:ListView>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:HauntedLocationString %>" 
        ProviderName="<%$ ConnectionStrings:HauntedLocationString.ProviderName %>" 
        
        SelectCommand="SELECT [ID], [NameOfInvestigator], [Picture], [Description] FROM [AddPicture]"></asp:SqlDataSource>
</p>
    <p>
        <asp:FileUpload ID="file_picture" runat="server" />
    </p>
    <br />
    Investigator&nbsp;
    <asp:LoginName ID="ln_mobilepage" runat="server" />
    <br />
    <br />
    Photo discription&nbsp;
    <asp:TextBox ID="tb_descript" runat="server"></asp:TextBox>
    <br />
    <br />
    <asp:Button ID="bt_addphoto" runat="server" Text="Button" />

      <br />
      <br />
      <br />
<div align='center'><a href='http://www.hit-counts.com'><img src='http://www.hit-counts.com/counter.php?t=MTI0NTQ4OA==' border='0' alt='Mobile Page Counter'></div>
        </asp:Content>
